extends LightSource

@onready var bulb: MeshInstance3D = $bulb
@onready var omni_light_3d: OmniLight3D = $OmniLight3D

const WARM_LAMP_EMISSION_GLASS = preload("res://assets/materials/warm_lamp_emission_glass.tres")

func enable() -> void:
	omni_light_3d.show()
	bulb.set_surface_override_material(0, WARM_LAMP_EMISSION_GLASS)

func disable() -> void:
	omni_light_3d.hide()
	bulb.set_surface_override_material(0, null)
